package lhy.autoparts.pojo;

import lhy.frontend.annotation.EntityComment;
import lhy.orm.annotation.BasicBean;
import lhy.orm.annotation.Column;
import lhy.orm.annotation.Nullable;
import lhy.orm.annotation.ViewOnly;
import lhy.lhyorm.field.DatabaseField;
import lhy.lhyorm.table.DatabaseTable;

import java.io.Serializable;

@DatabaseTable(tableName = "ItemAmountView")
@EntityComment("库存数量")
@BasicBean
@ViewOnly
public class ItemAmountView implements Serializable {
    @Column("商品编号")
    @DatabaseField(id=true)
    public String id;
    @Column("商品名称")
    @DatabaseField
    public String name;
    @Column("商品型号")
    @DatabaseField
    public String model;
    @Column("类别")
    @DatabaseField
    public String cateName;
    @Column("数量")
    @DatabaseField
    public int amount;
    @Column("物料单位")
    @DatabaseField
    public String amountName;
    @Column("平均成本")
    @DatabaseField
    public double avgCost;
    @Column("销售价格")
    @DatabaseField
    public double sellPrice;
    @Column("供应商名称")
    @DatabaseField
    public String supplierName;
    @Column("备注")
    @DatabaseField
    @Nullable
    public String comment;
}
